@import (reference) "../variable.less";
@padding-group: 7px;

.wea-edc-error { color: @error-color !important;}

.wea-edc-input-conatiner {
  position: relative;

  .wea-edc-input-icon {
    position: absolute;
    left: 4px;
    z-index: 1;
    font-size: 18px;
    line-height: @pc-fh;
    color: #666;

    & + input {
      padding-left: 24px;
    }
  }
}

.wea-edc-form-group {
  position: relative;
  padding: @padding-group 0 0;

  &.wea-edc-offset-2 {
    padding-left: 20px;
  }
  
  .wea-checkbox {
    position: absolute;
    top: 13px;
    left: 0;
  }

  .wea-input-normal,
  .wea-select {
    width: 100%;
  }

  .wea-edc-error {
    padding: @padding-group 22px 0;
  }
}

.wea-edc-table-layout {
  display: table;
  width: 70%;
  table-layout: fixed;

  &.full-width {
    width: 100%;
  }

  & > div,
  & > span {
    display: table-cell;
    width: 100%;
    padding-left: 5px;
    vertical-align: middle;

    &.word-6 {
      width: 6em;
    }

    input,
    select,
    .wea-select {
      width: 100%;
    }

    &:first-child {
      padding-left: 0;
    }
  }
}

.wea-edc-form-btn {
  background-color: @main-color;
  border-color: @main-color;
  color: #fff;

  &:hover {
    border-color: @main-color;
    background-color: @main-color;
  }

  &.ant-btn-ghost {
    color: @main-color;
    background-color: #fff;
  }
}

.mobile-device {
  .wea-edc-input-icon {
    line-height: @mobile-fh;
  }
  .wea-edc-table-layout {
    width: 100%;
  }

  select {
    -webkit-appearance: none;
  }

  .wea-edc-select-container {
    position: relative;

    &:after {
      content: ' ';
      position: absolute;
      top: 14px;
      right: 8px;
      border: 4px solid transparent;
      border-top: 8px solid #666;
    }
  }
}